//
//  ProductListCell.m
//  BeautyPicture
//
//  Created by 沈振邦 on 15/10/23.
//  Copyright (c) 2015年 szb. All rights reserved.
//

#import "homeCell.h"

@implementation homeCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        _listImageView = [[UIImageView alloc] initWithFrame:self.bounds];
        _listImageView.height = frame.size.height - 22.0f;
        _listImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self addSubview:_listImageView];

        _listPrompt = [[UILabel alloc] initWithFrame:CGRectMake(0, frame.size.height - 22.0f, frame.size.width, 17.0f)];
        _listPrompt.textColor = [UIColor lightGrayColor];
        _listPrompt.textAlignment = NSTextAlignmentCenter;
        _listPrompt.font = [UIFont systemFontOfSize:14.0f];
        [self addSubview:_listPrompt];
        
        [self.layer setBorderColor:[BPGlobaBGColor CGColor]];
        [self.layer setBorderWidth:0.7];
    }
    return self;
}

@end
